const http = require('http')
const server = http.createServer()
server.on('request', (req, res) => {
    res.setHeader('Access-Control-Allow-Origin', '*')
    fetch('http://192.168.96.40:3001').then(res => res.text()).then(data => {
        console.log(data.toString());
        res.end(data)
    })


})
server.listen(3000, () => {
    console.log('server is running at http://127.0.0.1:3000')
})
